package com.unittec.drainage.sdk.manage.enums;

/**
 * @author Jason
 * @date 2020/10/20
 */
public enum WaterheadUserStatusEnum {

    status_0("0", "正常"),
    status_1("1", "销户");

    private String key;
    private String value;

    private WaterheadUserStatusEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return this.key;
    }

    public String getValue() {
        return this.value;
    }

    public static WaterheadUserStatusEnum convertLevel(String key) {
        WaterheadUserStatusEnum[] list = values();
        for (WaterheadUserStatusEnum planType : list) {
            if (planType.getKey().equals(key)) {
                return planType;
            }
        }
        return null;
    }

}
